﻿{extend name="$_tpl_public_layout_danceadmin"/}


{block name="breadcrumb"}
<ol class="breadcrumb">
	<li class="breadcrumb-item"><a href="{:url('admin/index/index')}">{:config('system.site_title')}</a></li>
	<li class="breadcrumb-item"><a href="{:url('admin/config/index')}">{$sideName}</a></li>
</ol>
{/block}


{block name="pageheader"}
{$sideName}
{/block}


{block name="content"}
<div class="card card-noborder">
	<div class="card-body">
		<form method="post" action="{:url('admin/config/doSet')}" enctype="multipart/form-data" class="form-horizontal J_ajaxForm">
			<h3 class="form-lighter">基本信息</h3>
			<div class="form-group row">
				<label class="col-sm-2 control-label">站点名称</label>
				<div class="col-sm-5">
					<input type="text" name="data[site_title]" value="{$info['site_title']}" class="form-control" />
				</div>
				<div class="col-sm-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">网站域名</label>
				<div class="col-sm-5">
					<input type="text" name="data[site_domain]" value="{$info['site_domain']}" class="form-control" />
				</div>
				<div class="col-sm-5 help-block">填写您站点的完整域名。例如: http://www.phpwind.net，不要以斜杠 (“/”) 结尾</div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">分享域名</label>
				<div class="col-sm-5">
					<input type="text" name="data[site_share_domain]" value="{$info['site_share_domain']}" class="form-control" />
				</div>
				<div class="col-sm-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">分享安全域名</label>
				<div class="col-sm-5">
					<input type="text" name="data[site_https_domain]" value="{$info['site_https_domain']}" class="form-control" />
				</div>
				<div class="col-sm-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">备案号</label>
				<div class="col-sm-5">
					<input type="text" name="data[site_icp]" value="{$info['site_icp']}" class="form-control" />
				</div>
				<div class="col-sm-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">站点开关</label>
				<div class="col-sm-5">
					<?php echo isOpenRadioHtmlB('data[toggle_web_site]', $info['toggle_web_site']); ?>
				</div>
				<div class="col-sm-5"></div>
			</div>

			<h3 class="form-lighter">客服相关</h3>
			<div class="form-group row">
				<label class="col-sm-2 control-label">平台二维码</label>
				<div class="col-sm-5">
					<div class="upload-control">
						<input type="file" name="compewm" class="J_uploadfile" />
					</div>
					<div class="upload-show J_preview">
						<img src="{$info['compewm']}" class="upload-img-sm" onerror="Javascript:this.src='/static/danceAdmin/images/nopic.png';" />
					</div>
					<div class="upload-operation">
						<label><input type="checkbox" name="compewm_del" value="1"> 删除照片</label>
					</div>
					<div class="upload-help">大小2M以下,建议尺寸600×600px</div>
				</div>
				<div class="col-sm-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">客服二维码</label>
				<div class="col-sm-5">
					<div class="upload-control">
						<input type="file" name="kefuewm" class="J_uploadfile" />
					</div>
					<div class="upload-show J_preview">
						<img src="{$info['kefuewm']}" class="upload-img-sm" onerror="Javascript:this.src='/static/danceAdmin/images/nopic.png';" />
					</div>
					<div class="upload-operation">
						<label><input type="checkbox" name="kefuewm_del" value="1"> 删除照片</label>
					</div>
					<div class="upload-help">大小2M以下,建议尺寸600×600px</div>
				</div>
				<div class="col-sm-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">客服微信</label>
				<div class="col-sm-5">
					<input type="text" name="data[kefu_wxid]" value="{$info['kefu_wxid']}" class="form-control" />
				</div>
				<div class="col-sm-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">客服QQ</label>
				<div class="col-sm-5">
					<input type="text" name="data[kefu_qq]" value="{$info['kefu_qq']}" class="form-control" />
				</div>
				<div class="col-sm-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">客服信息</label>
				<div class="col-sm-5">
					<input type="text" name="data[kefu_info]" value="{$info['kefu_info']}" class="form-control" />
				</div>
				<div class="col-sm-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">客服电话</label>
				<div class="col-sm-5">
					<input type="text" name="data[kefu_tel]" value="{$info['kefu_tel']}" class="form-control" />
				</div>
				<div class="col-sm-5"></div>
			</div>
			<h3 class="form-lighter">功能相关</h3>
			<div class="form-group row">
				<label class="col-sm-2 control-label">授权服务号</label>
				<div class="col-sm-5">
					<?php echo optionRadioHtmlB($weixinAccountList, 'data[authorize_wid]', $info['authorize_wid'], 'wxname', 'id'); ?>
				</div>
				<div class="col-sm-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">默认小程序</label>
				<div class="col-sm-5">
					<?php echo optionRadioHtmlB($weixinAppletList, 'data[weixin_appletid]', $info['weixin_appletid'], 'wxname', 'id'); ?>
				</div>
				<div class="col-sm-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">验证码是否开启</label>
				<div class="col-sm-5">
					<?php echo isOpenRadioHtmlB('data[is_verify_open]', $info['is_mobile_verify_open']); ?>
				</div>
				<div class="col-sm-5 help-block">包括字母、数字，还有高级的验证码，比如极验(以后再区分是注册验证码还是其他)</div>
			</div>

			<div class="clearfix form-actions">
				<div class="offset-md-2 col-sm-10">
					<button type="submit" class="btn btn-primary btn-sm J_ajaxSubmit">保存</button>
				</div>
			</div>
		</form>
	</div>
</div>
{/block}


{block name="script"}
<!-- 上传图片展示 -->
<script type="text/javascript" src="__STATIC__/dancewidgets/uploadPreview/uploadPreview.js"></script>

{/block}